projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42e45f4
)
GdkScreenX11: Dispose visuals
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 29 Jun 2013 23:23:23 +0000
(19:23 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 29 Jun 2013 23:23:23 +0000
(19:23 -0400)
If we let them hold onto their X resources until finalize,
it is too late.
gdk/x11/gdkscreen-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkscreen-x11.c
b/gdk/x11/gdkscreen-x11.c
index 804b18ed1a13abc6fef45d4bacb6aca9274e479b..8d3a490bc551252e9235b7e42ef4a76fe21ab2ec 100644
(file)
--- a/
gdk/x11/gdkscreen-x11.c
+++ b/
gdk/x11/gdkscreen-x11.c
@@
-149,6
+149,9
@@
gdk_x11_screen_dispose (GObject *object)
if (x11_screen->root_window)
_gdk_window_destroy (x11_screen->root_window, TRUE);
+ for (i = 0; i < x11_screen->nvisuals; i++)
+ g_object_run_dispose (G_OBJECT (x11_screen->visuals[i]));
+
G_OBJECT_CLASS (gdk_x11_screen_parent_class)->dispose (object);
x11_screen->xdisplay = NULL;